<?php $imageurl='../administrator/components/com_svquanlycanbo/uploads/'.$this->uploadimg; ?>
<?php 
defined('_JEXEC') or die('Restricted access');

AdminUIHelper::startAdminArea ();
?>

<form name="adminForm" enctype="multipart/form-data" method="post">
	<input type='hidden' name='task' />
	<input type='hidden' name='hinhanh' value='<?php echo $this->uploadimg; ?>' />
	<fieldset>
		<legend>Chi tiết cán bộ thêm mới</legend>
		<table class="admintable" style="width:50%; float:left;">
			<tr>
				<td class="key">Tên</td>
				<td><input style="width:250px;" type="text" name="ten" value="<?php echo $this->ten; ?>" /></td>
			</tr>
						<tr>
				<td class="key">Hình ảnh</td>
				<td> 
		     	<?php echo '<img width="120" height="120" src="'.$imageurl.'" alt="svbongda" />'; ?>
		     	<br />
		     	<input type="file" name="file" id="file" /> 
				<input type="submit"  value="Submit" onclick="document.adminForm.submit();" />
		     	</td>
			</tr>
             <tr>
                 <td class="key">Phòng ban</td>
                   <td>
                       <select style="width:250px;" name="idphongban" id="idphongban" class="inputbox" size="1">
                            <option value="0" selected="selected">++++++++++ chọn +++++++++++++</option>
                            <?php 
                            foreach($this->listPhongban as $record)
                            {
	                        echo '<option value="'.$record->key.'">'.$record->text.'</option>';
                            }
                            ?>                                                                                  
                        </select>                  
                    </td>
              </tr>
						<tr>
				<td class="key">Chức vụ</td>
				 <td>
                       <select style="width:250px;" name="idchucvu" id="idchucvu" class="inputbox" size="1">
                            <option value="0" selected="selected">++++++++++ chọn +++++++++++++</option>
                            <?php 
                            foreach($this->listChucvu as $record)
                            {
	                        echo '<option value="'.$record->cv_id.'">'.$record->cv_ten.'</option>';
                            }
                            ?>                                                                                  
                        </select>                  
                  </td>
			</tr>
						<tr>
				<td class="key">Chức danh</td>
				  <td>
                       <select style="width:250px;" name="idchucdanh" id="idchucdanh" class="inputbox" size="1">
                            <option value="0" selected="selected">++++++++++ chọn +++++++++++++</option>
                            <?php 
                            foreach($this->listChucdanh as $record)
                            {
	                        echo '<option value="'.$record->cd_id.'">'.$record->cd_ten.'</option>';
                            }
                            ?>                                                                                  
                        </select>                  
                 </td>
			</tr>
						<tr>
				<td class="key">Địa chỉ</td>
				<td>
				<textarea name="diachi" rows="3" cols="32" ><?php echo $this->diachi; ?></textarea>
				</td>
			</tr>
						<tr>
				<td class="key">Số điện thoại</td>
				<td><input style="width:250px;" type="text" name="dienthoai" value="<?php echo $this->dienthoai; ?>" /></td>
			</tr>

		</table>
		<!-- ---------------------------------------------------------------------------- -->
				<table class="admintable" style="width:50%; float:left;">
						<tr>
				<td class="key">Quê quán</td>
				<td><input style="width:250px;" type="text" name="quequan" value="<?php echo $this->quequan; ?>" /></td>
			</tr>
						<tr>
				<td class="key">Năm sinh</td>
				<td>
				<?php echo JHtml::calendar($item->datepassed, 'namsinh', 'namsinh'); ?>
				</td>
			</tr>
						<tr>
				<td class="key">Dân tộc</td>
				<td><input style="width:250px;" type="text" name="dantoc" value="<?php echo $this->dantoc; ?>" /></td>
			</tr>
						<tr>
				<td class="key">Tôn giáo</td>
				<td><input style="width:250px;" type="text" name="tongiao" value="<?php echo $this->tongiao; ?>" /></td>
			</tr>
						<tr>
				<td class="key">Số CMND</td>
				<td><input style="width:250px;" type="text" name="cmnd" value="<?php echo $this->cmnd; ?>" /></td>
			</tr>
						<tr>
				<td class="key">Giới tính</td>
				<td>
					<select name="gioitinh" id="gioitinh" class="inputbox" size="1">
					    <?php echo '<option select="selected"  value="'.$this->gioitinh.'">'.$this->gioitinh.'</option>'; ?>
						<option value="Nam">Nam</option>
						<option value="Nữ">Nữ</option>
					</select>
				</td>
			</tr>
						<tr>
				<td class="key">Tình trạng hôn nhân</td>
				<td>
					<select name="honnhan" id="honnhan" class="inputbox" size="1">
					    <?php echo '<option select="selected" value="'.$this->honnhan.'">'.$this->honnhan.'</option>'; ?>
						<option value="Độc thân">Độc thân</option>
						<option value="Đã lập gia đình">Đã lập gia đình</option>
						<option value="Không xác định">Không xác định</option>
					</select>
				</td>
			</tr>
			<tr>
				<td class="key">Miêu tả</td>
				<td>
				<textarea name="mieuta" rows="10" cols="50" ><?php echo $this->mieuta;?></textarea>
				</td>
			</tr>
		</table>
	</fieldset>
</form>